package com.asset.dispoal.file.head;

import com.asset.dispoal.file.head.api.HeadService;
import com.asset.dispoal.file.head.dto.HeadImgRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @author qr
 * @date 2022/3/16$
 */
@RestController
@Api(value = "头像配置", tags = "头像配置")
@RequestMapping("file/head")
public class HeadController {

    @Autowired
    HeadService headService;

    @PostMapping(value = "/saveHead")
    @ApiOperation("设置头像")
    public Result saveHead(HeadImgRequest headImgRequest) {
        return headService.saveHead(headImgRequest);
    }


}
